﻿using Deferred.Library.Scene;
using Microsoft.Xna.Framework;

namespace Deferred.Editor.Scene
{
    public class DrawableObjectWrapper
    {
        public DrawableObject DrawableObject { get; private set; }

        public float PositionX { get { return DrawableObject.Position.X; } set { DrawableObject.Position = new Vector3(value, DrawableObject.Position.Y, DrawableObject.Position.Z); } }
        public float PositionY { get { return DrawableObject.Position.Y; } set { DrawableObject.Position = new Vector3(DrawableObject.Position.X, value, DrawableObject.Position.Z); } }
        public float PositionZ { get { return DrawableObject.Position.Z; } set { DrawableObject.Position = new Vector3(DrawableObject.Position.X, DrawableObject.Position.Y, value); } }

        public float ScaleX { get { return DrawableObject.Scale.X; } set { DrawableObject.Scale = new Vector3(value, DrawableObject.Scale.Y, DrawableObject.Scale.Z); } }
        public float ScaleY { get { return DrawableObject.Scale.Y; } set { DrawableObject.Scale = new Vector3(DrawableObject.Scale.X, value, DrawableObject.Scale.Z); } }
        public float ScaleZ { get { return DrawableObject.Scale.Z; } set { DrawableObject.Scale = new Vector3(DrawableObject.Scale.X, DrawableObject.Scale.Y, value); } }

        public DrawableObjectWrapper(DrawableObject drawableObject)
        {
            DrawableObject = drawableObject;
        }
            
    }
}
